|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.highdeal.pnr.hci.CounterModel
public class CounterModel
This class represents a counter in a business relationship. A counter has a name and a current value.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="counter">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="value" type="xs:decimal"/>
</xs:complexType>
</xs:element>
| Field Summary | |
|---|---|
static java.lang.String |
TAG_NAME
The value of that constant is the XML tag name of the CounterModel. |
| Constructor Summary | |
|---|---|
CounterModel()
Constructs an empty counter object. |
|
CounterModel(CounterDescriptionModel counterDesc)
Constructs a counter object from a Counter description object |
|
CounterModel(java.lang.String name)
Constructs a counter object with a name. |
|
CounterModel(java.lang.String name,
java.math.BigDecimal value)
Constructs a counter object with a name and a current value. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String name,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
boolean |
checkValidity()
Returns true if the counter is valid. |
java.lang.String |
getName()
Returns the name of the counter. |
java.math.BigDecimal |
getValue()
Returns the value of the counter. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setName(java.lang.String name)
Sets the name of the counter. |
void |
setValue(java.math.BigDecimal value)
Sets the value of the counter. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TAG_NAME
CounterModel.
| Constructor Detail |
|---|
public CounterModel()
public CounterModel(java.lang.String name)
name - the name of the counter.
public CounterModel(java.lang.String name,
java.math.BigDecimal value)
name - the name of the counter.value - the current value of the counter.public CounterModel(CounterDescriptionModel counterDesc)
counterDesc - the Counter description object used as base for the construction of the Counter object.| Method Detail |
|---|
public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the counter.public java.math.BigDecimal getValue()
public void setValue(java.math.BigDecimal value)
value - the value of the counter.public boolean checkValidity()
public void setAttributes(XMLAttributes atts)
XMLMarshallable
setAttributes in interface XMLMarshallableatts - The XML attributes of the current element
public void addChild(java.lang.String name,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
addChild in interface XMLMarshallablename - The name of tag for the childchild - The child to be addedpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
addCharacterData in interface XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
marshal in interface XMLMarshallableoutput - The XML output to marshal the object intopublic java.lang.String toString()
toString in class java.lang.Object
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||